#include "redirect_stdio.h"

#define REDIRECT_TO_HUART huart1

int _write(int fd,char *ptr,uint16_t len)
{
    HAL_UART_Transmit(&REDIRECT_TO_HUART,(uint8_t*)ptr,len,HAL_MAX_DELAY);
    return len;
}